﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WcfCloudMusic.DataContracts;

namespace WcfCloudMusic.DataLayer
{
    /// <summary>
    /// ICloudMusicDataLayer
    /// </summary>
    public interface ICloudMusicDataLayer
    {
        /// <summary>
        /// Logins the specified user.
        /// </summary>
        /// <param name="user">The user.</param>
        /// <returns>UserId</returns>
        int? Login(DCUser user);

        /// <summary>
        /// Uploads the specified data.
        /// </summary>
        bool Upload(DCUploadRequest data);
    }
}